package com.gofaraway.common.exception;

import static com.gofaraway.common.exception.ErrorCodeEnum.*;

/**
 * 系统异常
 *
 * @author: 1065277
 * @since: 2022-08-02
 **/
public class SystemException extends BaseException {
    public SystemException(ErrorCodeEnum errorCodeEnum) {
        super(errorCodeEnum);
    }

    public SystemException(ErrorCodeEnum errorCodeEnum, Object data) {
        super(errorCodeEnum, data);
    }

    /**
     * 通用系统异常,系统类异常统一返回前端
     */
    public static final SystemException EXCEPTION_ERROR_CODE_B0001 = new SystemException(ERROR_CODE_B0001);
    public static final SystemException EXCEPTION_ERROR_CODE_B0002 = new SystemException(ERROR_CODE_B0002);
    public static final SystemException EXCEPTION_ERROR_CODE_B0100 = new SystemException(ERROR_CODE_B0100);
    public static final SystemException EXCEPTION_ERROR_CODE_B0101 = new SystemException(ERROR_CODE_B0101);
    public static final SystemException EXCEPTION_ERROR_CODE_B0102 = new SystemException(ERROR_CODE_B0102);

    public static final SystemException EXCEPTION_ERROR_CODE_B0103 = new SystemException(ERROR_CODE_B0103);
    public static final SystemException EXCEPTION_ERROR_CODE_B0104 = new SystemException(ERROR_CODE_B0104);


}
